import { createApp } from 'vue';
// 1. 引入你需要的组件
import {Button, Icon, NavBar, Tabbar, TabbarItem} from 'vant';
//3.引入全部，后面优化
import Vant from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
import './global.css';
import App from "./App.vue";
import Index from "./pages/login.vue";
import Team from "./pages/TeamPage.vue";
import {createMemoryHistory, createRouter, createWebHashHistory} from 'vue-router'
import * as VueRouter from 'vue-router'
import routes from "./config/route";
const app = createApp(App);
app.use(Vant);
//3.实例并传递
const router = VueRouter.createRouter({
    //4.内部提供了history模式的实现，为了简单起见，使用hash 模式
    history: VueRouter.createWebHistory(),
    routes,
})
app.use(router);
app.mount('#app')
